package com.fit.dao.wholesale;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.Wholesale;

public interface WholesaleDAO {

	@CommitAfter
	public boolean save(Wholesale wholesale);
	
	public Wholesale findByName(String name);
	
	public List<Wholesale> findAll();
	
	@CommitAfter
	public boolean deleteByName(String Name);

	@CommitAfter
	public boolean update(Wholesale wholesale);
	
//	public boolean checkRegistrations(Wholesale wholesale);

}
